package com.wxq.shape;

import android.graphics.Path;
import android.graphics.Path.Direction;
import android.graphics.RectF;

public class MapRect extends MapPath{
	
	private RectF rectF;
	
	public MapRect(RectF rectF) {
		super(new Path());
		this.rectF = rectF;
		mPath.addRect(rectF, Direction.CW);
		setDrawPath(new Path(mPath));
	}

	public MapRect(RectF rectF, float xOffset, float yOffset) {
		this(rectF);
		offset(xOffset, yOffset);
	}

	public RectF getRectF() {
		return rectF;
	}

	public void setRectF(RectF rectF) {
		this.rectF = rectF;
	}
}
